while (!reader.atEnd()) {
if (reader.tokenType() == QXmlStreamReader::StartElement) {
- if (reader.name() == "CacheDetails") {
+ if (reader.name() == u"CacheDetails") {
NaviReadCache(reader);
}
}
wpt_to->altitude = attrv->value("Value").toString().toDouble();
}
if (attrv->hasAttribute("Unit")) {
- isFeet = (attrv->value("Unit") == "ft");
+ isFeet = (attrv->value("Unit") == u"ft");
}
if (isFeet) {
wpt_to->altitude = FEET_TO_METERS(wpt_to->altitude);
static void xol_overlay(xg_string, const QXmlStreamAttributes* attrv) {
if (attrv->hasAttribute("version")) {
- if (attrv->value("version") != "1.0") {
+ if (attrv->value("version") != u"1.0") {
fatal(MYNAME ": Unsupported version %s.\n",
qPrintable(attrv->value("version").toString()));
}
static void xol_shape(xg_string, const QXmlStreamAttributes* attrv) {
if (attrv->hasAttribute("type")) {
- if (attrv->value("type") == "waypoint") {
+ if (attrv->value("type") == u"waypoint") {
wpt_ = new Waypoint;
- } else if (attrv->value("type") == "polyline") {
+ } else if (attrv->value("type") == u"polyline") {
trk_ = new route_head;
track_add_head(trk_);
}